package com.xlh.service.cs;

import com.xlh.dto.cs.CourseSystemCourseDTO;
import com.xlh.dto.cs.CourseSystemTreeDTO;
import com.xlh.pojo.cs.CoursePhase;

import java.util.List;

/**
 * @author zhr 2019/10/18
 */
public interface CoursePhaseService {
    List<CoursePhase> selectByCourseIds(List<Long> courseIds, Integer type);

    void edit(List<CourseSystemTreeDTO> phaseList);

    /**
     * 获取课程-学习阶段关系树
     * @return
     * @param systemCourseList
     * @param notSystemCourseList
     */
    List<CourseSystemTreeDTO> getCoursePhase(List<CourseSystemCourseDTO> systemCourseList, List<CourseSystemCourseDTO> notSystemCourseList);

    void deleteByCourseIds(List<Long> courseIds);

    void deleteByPhaseIds(List<Long> phaseIds);
}
